package Project4;

import java.util.*;

class CaseStatement extends Statement{
	private ArrayList<Statement> statements = new ArrayList<Statement>();
	public boolean broken = false;
	private int value = 0;

	public CaseStatement(int v){
		value = v;
	}

	public void addStatements(ArrayList<Statement> s){
		statements = s;
	}

	public String getHeader(){
		String r = "li $t0, " + value + "\n";
		r += "beq $s1, $t0";
		return r;
	}

	public String getBody(){
		String r = "";
		for(Statement s : statements){
			r += s;
		}
		return r;
	}

	public String toString(){
		return "TODO";
	}
}
